package com.guonl.open.api.request.waybill;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class ApiTransportNoteUpdateFreightRequest {

    @ApiModelProperty(value = "外部运单号-唯一标识")
    @NotBlank(message = "外部运单号不能为空")
    private String outSideWaybillNO;

    @ApiModelProperty(value = "运费金额")
    @DecimalMin(value = "0.0", message = "运费金额不能小于0")
    @NotNull(message = "运费金额不能为空")
    private BigDecimal freightAmount;


}
